@import '../../../sass/variables';
@import '../../sprites/sprite_page_icons';
@import '../../../sprites/sprite_commonIcon';

.home{
    .speakBlock{
        background: $white;
        padding: 10px;
        .content{
            position: relative;
            border: 1px solid $primary;
            padding: 15px 15px 15px 30px;
            &:before{
                content: "";
                display: block;
                position: absolute;
                left: 10px;
                top: 16px;
                height: 10px;
                width: 10px;
                border-radius: 50%;
                background: $navBg_hover;
            }
            &:after{
                content: "";
                display: block;
                position: absolute;
                left: 15px;
                top: 20px;
                bottom: 10px;
                width: 1px;
                background: $navBg_hover;
            }
            h2{
                font-size: 16px;
                color: $primary;
                line-height: 1;
                font-weight: normal;
            }
            .text{
                padding-top: 15px;
                color: $text_muted;
            }
        }
        .m-btn, .m-btn-default{
            margin-right: 10px;
            padding: 0 15px;
        }
        .down{
            margin-top: 15px;
            float: right;
            height: 38px;
            line-height: 38px;
            .downIcon{
                display: inline-block;
                vertical-align: middle;
                margin-right: 10px;
                @include sprite($down-white);
            }
            .m-btn:hover{
                background: $primary_dark;
                color: $white;
            }
            span{
                margin-right: 5px;
                color: $text_muted;
            }
        }
    }
    .accountInfo{
        margin-top: 10px;
        background: $primary_lighter;
        padding: 30px 10px 30px 30px;
        white-space: nowrap;
        @include clfix;
        .item{
            float: left;
        }
        .platform{
            width: 80px;
            position: relative;
            padding-left: 50px;
            font-size: 18px;
            line-height: 1.25;
            color: $primary;
            text-align: center;
            .platformIcon{
                display: inline-block;
                position: absolute;
                left: 0;
                top: 5px;
                @include sprite($platform);
            }
        }
        .account{
            width: 210px;
            text-align: center;
            font-weight: bold;
            font-size: 20px;
            line-height: 50px;
            color: $nav_color;
            &.noAccount{
                width: 628px;
                font-weight: normal;
            }
        }
        .primary{
            color: $nav_color;
            font-weight: bold;
            line-height: 1.5;
            font-size: 20px;
        }
        .text{
            color: $text_muted;
            line-height: 1.5;
        }
        .state,.level,.sumCol{
            width: 140px;
        }
        .sum{
            color: $danger;
            font-weight: bold;
            line-height: 1.5;
            font-size: 20px;
            i{
                font-size: 16px;
            }
        }
    }
    
    /* 下拉框 */
    .operateSelect{
        position: relative;
        padding-right: 35px;
        .triggerOptions{
            position: absolute;
            right: 0;
            width: 36px;
            height: 34px;
            border-radius: 2px;
            border: 1px solid $primary;
            border-left: 0;
            .arrowIcon{
                position: absolute;
                left: 40%;
                top: 14px;
                width: 0;
                height: 0;
                border:5px solid $nav_color;
                border-color: $nav_color $primary_lighter $primary_lighter $primary_lighter;
            }
        }
        .m-btn,.triggerOptions{
            border-bottom-left-radius: 0;
            border-bottom-right-radius: 0;
        }
        .options{
            display: none;
            position: absolute;
            right: 0;
            left: 0;
            top: 100%;
            margin-top: -1px;
            background: $primary_lighter;
            border: 1px solid $primary;
            .op-item{
                color: $primary;
                line-height: 28px;
                padding-left: 20px;
                display: block;
                &:hover{
                    font-weight: bold;
                }
            }
        }
    }

    /* 最新公告 */
    .newsList{
        margin-top: 10px;
        .item{
            display: block;
            position: relative;
            white-space: nowrap;
            line-height: 42px;
            height: 42px;
            overflow: hidden;
            text-overflow: ellipsis;
            padding-right: 100px;
            border-bottom: 1px dotted $gray;
            a{
                color: $text_color;
                &:hover{
                    color: $primary;
                    text-decoration: underline;
                }
            }
            img{
                vertical-align: 0;
            }
        }
        .time{
            position: absolute;
            right: 0px;
            top: 0;
            line-height: inherit;
            background: $white;
            padding: 0 10px;
            color: $text_muted;
        }
    }
}